package cn.touna.jss.modules.third.tx.entity;

import cn.touna.risk.api.contraints.BankCardNumber;
import cn.touna.risk.api.contraints.IdCard;
import cn.touna.risk.api.contraints.Mobile;
import org.hibernate.validator.constraints.NotBlank;

/**
 * 银联请求
 * Created by Steve.Tao on 2017/9/4.
 */
public class UnionPayRequest {

    public static class ThreeElementRequest {
        /**
         * 姓名
         */
        @NotBlank
        private String name;
        @IdCard
        private String idCard;

        @BankCardNumber
        private String bankCardNo;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getIdCard() {
            return idCard;
        }

        public void setIdCard(String idCard) {
            this.idCard = idCard;
        }

        public String getBankCardNo() {
            return bankCardNo;
        }

        public void setBankCardNo(String bankCardNo) {
            this.bankCardNo = bankCardNo;
        }
    }

    /**
     * 银联四要素
     */
    public static class FourElementRequest extends ThreeElementRequest {
        /**
         * 银联预留号码
         */
        @Mobile
        private String mobile;

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }
    }
}
